package com.petshop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.petshop.pojo.VoucherOrder;
import com.petshop.utils.Result;

/**
 * @author 20289
 * @description 针对表【tb_voucher_order】的数据库操作Service
 * @createDate 2025-03-31 14:32:09
 */
public interface VoucherOrderService extends IService<VoucherOrder> {

    /**
     * 下单秒杀券
     *
     * @param voucherId
     * @return
     */
    Result seckillVoucher(Long voucherId) throws InterruptedException;

    /**
     * 创建一个秒杀券订单
     *
     * @param voucherId
     */
    void createVoucherOrder(VoucherOrder voucherId);
}
